package cn.autoOffice.service.impl;
/*
 *功能说明：工资业务实现类
 *@author 皮永浪
 *@Date 2023/3/29 10:49
 */

import cn.autoOffice.bean.pojo.Salary;
import cn.autoOffice.mapper.SalaryMapper;
import cn.autoOffice.service.SalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalaryServiceImpl implements SalaryService{

    @Autowired
    private SalaryMapper salaryMapper;

    //员工查询个人工资
    @Override
    public List<Salary> findSalaryByEmployeeCode(Integer employeeCode) {
        return salaryMapper.findSalaryByEmployeeCode(employeeCode);
    }

    //财务添加工资信息
    @Override
    public boolean addSalaryInfo(Salary salary) {
        return salaryMapper.addSalaryInfo(salary);
    }
}
